Skip to content

rainbow: improve proxy errors, and use atclient#1359

Draft
bnewbold wants to merge 3 commits intomainfrom
bnewbold/rainbow-proxy-errors
Draft

rainbow: improve proxy errors, and use atclient#1359
bnewbold wants to merge 3 commits intomainfrom
bnewbold/rainbow-proxy-errors

Conversation

@bnewbold
Copy link
Collaborator

The rainbow daemon (implemented in the splitter package) proxies some XRPC requests through to a backing relay instances (as well as doing best-effort forwarding to other "sibling" relay instances).

This PR is intended to change how errors from that proxying are reported. If the upstream relay returns an XRPC error (eg, with JSON body and the expected fields), it will pass back the same XRPC error (same status code, name, and message). If there is some other error, it will now return an HTTP Bad Gateway (502) error, instead of 500, and will only include a generic error message. It will now log the full error.

NOTE: this needs manual testing before merge and deploy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant